package old.day03;
//运算符的演示
public class OperDemo {
    public static void main(String[] args) {
        int a=10,b=6;
        int max=a>b?a:b;
        System.out.println(max);
        int num=10;
        int flag=num>0?1:-1;
        System.out.println(flag);






















        /*

        short e=10;
        e +=10;
        System.out.println(e);
        short f=5;
        f -=2;
        System.out.println(f);
        short g=3;
        g *=5;
        System.out.println(g);
        short h=20;
        h/=3;
        System.out.println(h);
        short k=30;
        k %=7;
        System.out.println(k);
        int age=22;
        String name="张磊";
        System.out.println("大家好，我叫"+name+"，是练习时常两年半的个人练习生，今年"+age+"岁");

         */
























            /*
           int  a=5,b=10;
          boolean c=!(a<b) ;
          System.out.println(c);
          System.out.println(!(a>b));
          int d=5;
          boolean b3 =a>b && d++>2;
                System.out.println(b3);
                System.out.println(d);
                boolean b4 =a>b && d++>2;
                System.out.println(b4);

             */








                /*
        int a=5,b=10,c=5;
        boolean b1=b>a && c<b;
        System.out.println(b1);
        System.out.println(a==c && b<a);
        System.out.println(b!=a && a>c);\

                 */





















        /*
        int a=5,b=10,c=5;
        System.out.println(a++>c);//false,a=5,c=5
        System.out.println(a++>c);//true,a=6,c=5
        System.out.println(b>c);//true
        System.out.println(a==c);//false
        System.out.println(c>b);//false
        System.out.println(b%3<c);//true
        System.out.println(a!=c);//true

         */






















        /*
        int a=5,b=5;
        int c=a--;
        int d=--b;
        System.out.println(a);
        System.out.println(b);
        System.out.println(c);
        System.out.println(d);

         */












        /*

        int a=6,b=6;
        a++;
        ++b;
        int c=a++;
        int d=++b;
        System.out.println(c);
        System.out.println(d);
        System.out.println(a++);
        System.out.println(a);
        System.out.println(++b);
        System.out.println(b);

         */
    }
}
